from PyInstaller.utils.hooks import collect_data_files, collect_submodules, collect_dynamic_libs

# 打印调试信息
print("[HOOK] Collected for unimernet:")

# 收集所有 unimernet 非 Python 文件
datas = collect_data_files('unimernet', include_py_files=False)
# 添加隐藏导入
hiddenimports = collect_submodules('unimernet')

for item in datas:
    print(f"  {item[0]} → {item[1]}")